<?php
include ('database.php'); 
class login
{
	#db connect
	private $hostname = "";
	private $dbuser = "";
	private $dbpw = "";
	private $database = "";

	#login system
	private $username;
	private $password;
	private $hash;
	
	private $error = "";
	private $msg = "";

	private function connect()
	{
		$connection = mysql_connect($this->hostname, $this->dbuser, $this->dbpw);
		  if(!$connection) {
		  	$this->error .= "Could not connect: " . mysql_error() . "<br />";
		} else {
			$this->error .= "No connection error <br />";
		}
		$dbselect = mysql_select_db($this->database, $connection);
		if(!$dbselect) {
			$this->error .= "Could not select DB: " . mysql_error() . "<br />";
		} else {
			$this->error .= "No dbselect error <br />";
		}
	}
	private function close()
	{
	  	mysql_close($this->connection);
	}
	public function login($user, $pw, $key)
	{
		
	}
	public function logout()
	{
		
	}
	public function register()
	{
		
	}
}
?>